﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace ProjetoFinal
{
    public class CollisionManager
    {
       
      
        public void Collision(Leaf leaf, Monckey monckey /*Fruit banana, Fruit acai, Fruit graviola, Fruit jaca, Fruit manga*/)
        {
            if(monckey.rect.Intersects(leaf.rect))
            {
                monckey.rect.Y = leaf.rect.Y - monckey.rect.Height;
                monckey.speed.Y *= -1;          
            }

            //if (monckey.rect.Intersects(banana.rect))
            //{
            //    // soma ponto e some fruta
            //}

            //if (monckey.rect.Intersects(acai.rect))
            //{
            //    // soma ponto e some fruta
            //}

            //if (monckey.rect.Intersects(graviola.rect))
            //{
            //    // soma ponto e some fruta
            //}

            //if (monckey.rect.Intersects(jaca.rect))
            //{
            //    // soma ponto e some fruta
            //}

            //if (monckey.rect.Intersects(manga.rect))
            //{
            //    // soma ponto e some fruta
            //}
        }

    }

}
